package com.ruoyi.system.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 商品信息对象 jf_goods
 * 
 * @author ruoyi
 * @date 2022-05-24
 */
public class JfGoods extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private Integer id;

    /** 分类id */
    @Excel(name = "分类id")
    private Integer fid;

    /** 商品名称 */
    @Excel(name = "商品名称")
    private String title;

    /** 商品封面图 */
    @Excel(name = "商品封面图")
    private String imgurl;

    /** 排序值 */
    @Excel(name = "排序值")
    private Integer sort;

    /** 1上架 2 下架  3 售罄 4删除  */
    @Excel(name = "1上架 2 下架  3 售罄 4删除 ")
    private Integer status;

    /** 商品价格 */
    @Excel(name = "商品价格")
    private BigDecimal price;

    /** 是否现货 1现货  2 预售 */
    @Excel(name = "是否现货 1现货  2 预售")
    private Integer isYu;

    /** 到货时间 */
    @Excel(name = "到货时间")
    private Integer arriveTime;

    /** 类型 1 一番赏 2 双随机 */
    @Excel(name = "类型 1 一番赏 2 双随机")
    private Integer type;

    /** 套数 */
    @Excel(name = "套数")
    private Long stock;

    /** 限购次数 0 不限制 */
    @Excel(name = "限购次数 0 不限制")
    private Integer xgBuy;

    /** 抽几次开启全收 0不限制 */
    @Excel(name = "抽几次开启全收 0不限制")
    private Integer xgAll;

    /** 全收0关闭 1开启 */
    @Excel(name = "全收0关闭 1开启")
    private Integer kgAll;

    /** 添加时间 */
    @Excel(name = "添加时间")
    private Integer addtime;

    /** $column.columnComment */
    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
    private Long creator;

    /** $column.columnComment */
    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
    private Date createDate;

    public void setId(Integer id) 
    {
        this.id = id;
    }

    public Integer getId() 
    {
        return id;
    }
    public void setFid(Integer fid) 
    {
        this.fid = fid;
    }

    public Integer getFid() 
    {
        return fid;
    }
    public void setTitle(String title) 
    {
        this.title = title;
    }

    public String getTitle() 
    {
        return title;
    }
    public void setImgurl(String imgurl) 
    {
        this.imgurl = imgurl;
    }

    public String getImgurl() 
    {
        return imgurl;
    }
    public void setSort(Integer sort) 
    {
        this.sort = sort;
    }

    public Integer getSort() 
    {
        return sort;
    }
    public void setStatus(Integer status) 
    {
        this.status = status;
    }

    public Integer getStatus() 
    {
        return status;
    }
    public void setPrice(BigDecimal price) 
    {
        this.price = price;
    }

    public BigDecimal getPrice() 
    {
        return price;
    }
    public void setIsYu(Integer isYu) 
    {
        this.isYu = isYu;
    }

    public Integer getIsYu() 
    {
        return isYu;
    }
    public void setArriveTime(Integer arriveTime) 
    {
        this.arriveTime = arriveTime;
    }

    public Integer getArriveTime() 
    {
        return arriveTime;
    }
    public void setType(Integer type) 
    {
        this.type = type;
    }

    public Integer getType() 
    {
        return type;
    }
    public void setStock(Long stock) 
    {
        this.stock = stock;
    }

    public Long getStock() 
    {
        return stock;
    }
    public void setXgBuy(Integer xgBuy) 
    {
        this.xgBuy = xgBuy;
    }

    public Integer getXgBuy() 
    {
        return xgBuy;
    }
    public void setXgAll(Integer xgAll) 
    {
        this.xgAll = xgAll;
    }

    public Integer getXgAll() 
    {
        return xgAll;
    }
    public void setKgAll(Integer kgAll) 
    {
        this.kgAll = kgAll;
    }

    public Integer getKgAll() 
    {
        return kgAll;
    }
    public void setAddtime(Integer addtime) 
    {
        this.addtime = addtime;
    }

    public Integer getAddtime() 
    {
        return addtime;
    }
    public void setCreator(Long creator) 
    {
        this.creator = creator;
    }

    public Long getCreator() 
    {
        return creator;
    }
    public void setCreateDate(Date createDate) 
    {
        this.createDate = createDate;
    }

    public Date getCreateDate() 
    {
        return createDate;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("fid", getFid())
            .append("title", getTitle())
            .append("imgurl", getImgurl())
            .append("sort", getSort())
            .append("status", getStatus())
            .append("price", getPrice())
            .append("isYu", getIsYu())
            .append("arriveTime", getArriveTime())
            .append("type", getType())
            .append("stock", getStock())
            .append("xgBuy", getXgBuy())
            .append("xgAll", getXgAll())
            .append("kgAll", getKgAll())
            .append("addtime", getAddtime())
            .append("updateTime", getUpdateTime())
            .append("creator", getCreator())
            .append("createDate", getCreateDate())
            .toString();
    }
}
